//
//  SearchHistoryViewController.m
//  必争医疗
//
//  Created by 付正 on 14-11-19.
//  Copyright (c) 2014年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "SearchHistoryViewController.h"

@interface SearchHistoryViewController ()<UISearchBarDelegate>


@end

@implementation SearchHistoryViewController
- (void)dealloc
{
    [super dealloc];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    [self.view setBackgroundColor:[UIColor whiteColor]];
    self.navigationController.navigationBar.translucent = NO;
    self.navigationItem.title = @"搜索";
    //执行方法
    [self creatSearchBar];
    
}

- (void)creatSearchBar
{
    self.mysearch = [[UISearchBar alloc] initWithFrame:CGRectMake(20, 20, self.view.frame.size.width - 40, self.view.frame.size.height / 18)];
    [_mysearch setPlaceholder:@"查询药品、疾病、症状、医生等"];
    [_mysearch setBarStyle:UIBarStyleDefault];
    [_mysearch setTintColor:[UIColor clearColor]];
    [_mysearch resignFirstResponder];
    _mysearch.delegate = self;
    [_mysearch setSearchBarStyle:UISearchBarStyleDefault];
    [self.view addSubview:_mysearch];
}













- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
